﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace EFCore.Models;

[Table("NeetOutMaterial")]
public partial class NeetOutMaterial
{
    [Key]
    [Column("Id_NeetOutMaterial")]
    public Guid IdNeetOutMaterial { get; set; }

    public DateTime CreatedDate { get; set; }

    /// <summary>
    /// 需求工单
    /// </summary>
    public string? OrderNo { get; set; }

    /// <summary>
    /// 需求数量
    /// </summary>
    public int? NeetQuantity { get; set; }

    /// <summary>
    ///  说明-实际需求数量
    /// </summary>
    [Column("remark")]
    public string? Remark { get; set; }

    /// <summary>
    /// 工单号
    /// </summary>
    [Column("moCode")]
    public string? MoCode { get; set; }

    /// <summary>
    /// 站位号
    /// </summary>
    [Column("slotNum")]
    public string? SlotNum { get; set; }

    [Column("MaterialId_Materialbase")]
    public Guid MaterialIdMaterialbase { get; set; }

    [ForeignKey("MaterialIdMaterialbase")]
    [InverseProperty("NeetOutMaterials")]
    public virtual MaterialBase MaterialIdMaterialbaseNavigation { get; set; } = null!;
}
